package one.stand.model;

import one.stand.common.cache.BaseCacheModel;
import one.stand.code.RedisCode;
import one.stand.util.RedisUtil;

public class TicketQrCacheModel extends BaseCacheModel<Integer> {
    /**
     * 二维码有效期: 30秒
     */
    public static Integer TIME = 30 * 60;

    public TicketQrCacheModel(RedisUtil redisUtil, String qrcode) {
        super(redisUtil, RedisCode.getTicketQr(qrcode), TIME + 1);
    }
}
